<!DOCTYPE html>
<html>
  <head>
  	<meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Admin of ZeroCms</title>

    <!-- Include style per-controller - vendor plugins -->
    <%= stylesheet_link_tag params[:controller] if ::Rails.application.assets.find_asset("#{params[:controller]}.css") %>

    <%= csrf_meta_tags %>

    <%= stylesheet_link_tag    'zero_cms/admin_application', media: 'all', 'data-turbolinks-track': 'reload' %>
    <%= javascript_include_tag 'zero_cms/admin_application', 'data-turbolinks-track': 'reload' %>
  </head>

	<body>

		<div id="wrapper" class="<%= params[:controller] %>.<%= params[:action] %>">
			<%= render 'layouts/zero_cms/admin/admin_navigation' %>

			<!-- Right Page -->
			<div id="page-wrapper" class="gray-bg <%= @extra_class %>">
				<!-- Top nav bar -->
				<%= render 'layouts/zero_cms/admin/admin_topnavbar' %>
				
				<!-- Main View -->
				<%= yield %>

				<!-- Footer -->
        <%= render 'layouts/zero_cms/admin/admin_footer' %>
			</div>
		</div>

		<%= javascript_include_tag params[:controller] if ::Rails.application.assets.find_asset("#{params[:controller]}.js") %>

		<!-- Include javascript per-view -->
    <!-- For demo purpose we include javascript in view but you can easily start SeedProject and organize it with Rails asset pipeline as you want -->
    <%= yield :javascript %>

	</body>
</html>
